﻿using System;
using UnityEngine;

namespace winS.UnityEditor.ProcessEditor
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public class TitleColorAttribute : Attribute
    {
        public Color color => new Color32(r, g, b, a);

        public byte r;
        public byte g;
        public byte b;
        public byte a;

        public TitleColorAttribute(byte r, byte g, byte b) : this(r, g, b, 255)
        {
        }
        public TitleColorAttribute(byte r, byte g, byte b, byte a)
        {
            this.r = r;
            this.g = g;
            this.b = b;
            this.a = a;
        }
    }
}